home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
tools
/
lu62
/
debug
/
read.me
< prev
next >
Wrap
Text File
|
1996-07-10
|
6KB
|
138 lines
=====================================================================
APL.EXE, APLMAIN.EXE description
=====================================================================
This subdirectory contains a sample application program "apl.exe", an
overlay module "aplmain.exe", two make project files for MSC 6.0 to make
these modules, and full source code.
This application program is not "real" program product, it's just an
example, main goal of it is demonstration of abilities of the LU 6.2
module. In fact I use it to debug the LU6.2 module only.
There are two modules: "apl.exe" and "aplmail.exe". The "apl.exe" is a
small monitor which loads and unloads the aplmain.exe. The "aplmain.exe"
is the application system (according to the IBM's APPC-PC terminologies).
The "apl.exe" loads the "aplmain.exe" to start a work and unloads it when
a request to run a transaction program's coming; after completion of the
transaction program the "apl" loads the "aplmain" again.
In addition there are two ".bat" files to help set the right environment
for the application program and LU6.2 module. You can run the
"aplcom.bat" if you want to get a session over COM# port, or you can run
the "aplipx.bat" if you want to get a session using Novell NetWare.
How to use the application program.
----------------------------------
To get session over asynchronous line type
aplcom
to use the COM2, or
aplcom 1
(to use the COM1)
in the command line and press the "Enter" key.
This is a sample scenery of a session.
1. Press F10 after you've saw the first screen.
2. Press "y" to confirm your accepting of the current configuration or "n"
to discard the current configuration, in the last case you'll have to set
the configuration later. (See "LU 6.2 Configuration" section for
details.)
3. You are in main menu now, go on the right, select the "Run" item and
press the "Enter" key.
4. Select "Attach" from the "Run" menu and press the "Enter".
(There is "Detach" item, please use it at very end of work, because it will
remove the LU6.2 module from the memory.)
Yours farther actions will depend on what you want to do. You may choose
something among the following possibilities:
- File transferring;
- Remote program execution;
- Conversation with remote partner.
To do any of these actions the remote application program must be placed in
the "Remote control" state (to do that press the "F10" key and select from
"Options" menu the "Remote control" item then).
a). File transferring
This is a simplest action which is provided by LU 6.2.
Make sure that remote program is in the "Remote control" state, in the
local LU from the "Run" menu select the "Copy..." item and press the
"Enter" key.
Select LU names form "From" and "To" LU name lists. After that you'll must
see the two overlapped panels which contain the file names in the current
directories. The front panel corresponds with the "From" LU, the
background panel corresponds with the "To" LU. You can swap the panels
pressing the "Tab" key.
Select a file using the "Right", "Left", "Up" and "Down" keys; press the
"F5" key to start the file transferring.
b). Remote program execution
All as in the case of "File transferring", but you no need select the file,
just press "F8" key, type the command with arguments just as in the MS-DOS
prompt and press the "Enter" key then. You have an other way to do it, -
select an executable file and press the "Enter" key to run it.
c). Chat with remote partner
Make sure that remote program is in "Remote control" state, from the "Run"
menu select the "TTY..." item and press the "Enter" key. Your program may
be ether in the "receive" or in the "send" states. If your program is in
the "receive" state just wait for a massage. If your program is in
the "send" state type your message and press the "Enter" key. To switch
from the "send" state to the "receive" state hit the "Enter" key twice.
LU 6.2 Configuration
---------------------
There are three important parameters which you must assign to each LU in
network. They are:
- LU name;
- LU type;
- name of a conversation mode.
Let's take a glance on the next figure.
+-----+ +-----+
|LU1 | |LU2 |
|type6+----------------------+type6|
|MODE6| |MODE6|
+-----+ +-----+
We have here two connected LUs. To configure the left one, I must define
it's name - "LU1" and it's type - 6, then I must define parameters it's
partner LU (remote LU), and parameters of a conversation. So I define the
name of the remote LU - "LU2", type of the remote LU - 6, and name the
mode of the conversation - "MODE6".
There may be several partner LUs (no more than 4 for this sample
application.) There is one trick, when you complete the parameters
definition of the partner LU, more exactly, when you type the partner LU
type (6 for example) do NOT hit the "Enter" key if you don't wish to
define the other partner LU, press the "Esc" key instead!
Let's now configure the right LU.
It's name is LU2, type - 6. The partner LU name is LU1, type is 6, name
the mode of conversation is "MODE6".
How to make the application program.
-----------------------------------
Here are two make files:
- "apl.mak" to build the "apl.exe" and,
- "aplmain.mak" to build the "aplmain.exe".
I always use the MS pwb, so I recommend you to run the pwb, select the
appropriate project and so on...
======================================
Nicholas Poljakov
Email: poljakov@vertex.inria.msu.ru
======================================